home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VMCOORDS.S < prev    next >
Text File  |  1993-03-25  |  1KB  |  43 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5. ;*-----------------------------------------------------------------------
  6. ;*
  7. ;*-----------------------------------------------------------------------
  8.  
  9.           globl     _vm_coords
  10. _vm_coords:
  11.  
  12. ;    .cargs    #8,handle.w,llx.w,lly.w,urx.w,ury.w
  13.  
  14. handle      =         8
  15. llx       =        10
  16. lly       =        12
  17. urx       =        14
  18. ury       =        16
  19.  
  20.           link        a6,#-2
  21.  
  22. ;          VContrl    #5,99,,#5
  23.           move.w    handle(a6),-(sp)    ; contrl[6]
  24.           move.w    #99,-(sp)            ; contrl[5]
  25.           subq.l    #2,sp                ; contrl[4]
  26.           move.w    #5,-(sp)            ; contrl[3]
  27.           subq.l    #2,sp                ; contrl[2]
  28.           clr.w     -(sp)                ; contrl[1]
  29.           move.w    #5,-(sp)            ; contrl[0]
  30.  
  31.           move.w    #1,handle(a6)        ; first intin word must be one; it
  32.                                         ; replaces handle in stacked parms.
  33.  
  34.           subq.l    #4,sp                ;* -> ptsout
  35.           pea        -2(a6)                ;* -> intout
  36.           subq.l    #4,sp                ;* -> ptsin
  37.           pea        handle(a6)            ;* -> intin
  38.           pea        16(sp)                ;* -> contrl
  39.  
  40.           jmp        vdicall
  41.  
  42.           end
  43.